package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.WhOutOrderAllocate;
import cn.stylefeng.guns.modular.order.model.params.WhOutOrderAllocateParam;
import cn.stylefeng.guns.modular.order.model.result.WhOutOrderAllocateResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 武汉合单商品分配 Mapper 接口
 * </p>
 *
 * @author wp
 * @since 2025-10-13
 */
public interface WhOutOrderAllocateMapper extends BaseMapper<WhOutOrderAllocate> {

    /**
     * 获取列表
     *
     * @author wp
     * @Date 2025-10-13
     */
    List<WhOutOrderAllocateResult> customList(@Param("paramCondition") WhOutOrderAllocateParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wp
     * @Date 2025-10-13
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") WhOutOrderAllocateParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wp
     * @Date 2025-10-13
     */
    Page<WhOutOrderAllocateResult> customPageList(@Param("page") Page page, @Param("paramCondition") WhOutOrderAllocateParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wp
     * @Date 2025-10-13
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") WhOutOrderAllocateParam paramCondition);

    List<WhOutOrderAllocateResult> getOutOrderAllocate(@Param("storageOutNumber") String storageOutNumber,@Param("storageGoodsId") Long storageGoodsId);

    WhOutOrderAllocateResult getOutOrderAllocateUn(@Param("storageOutNumber") String storageOutNumber,@Param("storageGoodsId") Long storageGoodsId);

    List<WhOutOrderAllocateResult> getOutOrderAllocateDetail(@Param("storageOutNumber") String storageOutNumber,@Param("storageGoodsId") Long storageGoodsId);
}
